package com.asion.qkan.ui.presenter;

import com.asion.qkan.entry.RecommendEntry;
import com.asion.qkan.ui.contract.FindContract;

/**
 * Created by asion on 16-10-12.
 */

public class FindPresenter extends FindContract.Presenter {

    @Override
    public void onStart() {
        super.onStart();
    }

    @Override
    public void setRecommendDatas(int tag,int type) {
        mModel.getRecommedDatas(tag, new FindContract.OnGetRecommends() {
            @Override
            public void OnRecommedSuccess(RecommendEntry recommendEntry,int type) {
                mView.showDatas(recommendEntry,type);
            }

            @Override
            public void OnFailed(Throwable T) {
                mView.showDataError(T);
            }
        },type);

    }
}
